# -*- coding:utf-8 -*-
# @Time    : 2022/1/30 23:52
# @Author  : LCHY
# @Email   : lchy0987@qq.com
# @File    : jump7.py
# @Software: PyCharm

# 逢数字7就跳过
for i in range(1, 101):
    if(i % 7 == 0):
        continue
    num = i
    while(num):
        if(num % 10 == 7):
            break
        else:
            num /= 10
    if(num == 0):
        print(i)